<template>
  <div class="cart-total-price">
    总选：
    <input
      type="checkbox"
      :checked="allChecked"
      @change="onAllChecked"
      class="btn"
      name=""
      id=""
    />
    <h2>{{ totalPrice }}</h2>
  </div>
</template>

<script>
export default {
  props: {
    allChecked: Boolean,
    totalPrice: Number,
  },
  methods: {
    onAllChecked() {
      this.$emit('onAllChecked')
    },
  },
}
</script>

<style></style>
